//
//  BaseNaviBarBack.swift
//  BMort_SwiftUI
//
//  Created by anscen on 2022/9/5.
//

import SwiftUI
struct BaseNaviBarBack: View {
    @Environment(\.presentationMode) var presentationMode
    var body: some View {
        Button(action: {
            popAction()
        }, label: {
            HStack {
                Image("icon_nav_back").frame(width: 44, height: 44, alignment: .leading)
            }
        })
    }
    func popAction(){
        self.presentationMode.wrappedValue.dismiss()
    }
}
//struct BaseNaviBarBack_Previews: PreviewProvider {
//    static var previews: some View {
//        BaseNaviBarBack()
//    }
//}
